home *** CD-ROM | disk | FTP | other *** search
- 46
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- DisableKeys
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baDisableKeys allows you to disable key presses.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baDisableKeys( Disable , WindowHandle )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer, Integer.
- --- RECORDSEPARATOR ---
- WindowHandle is the handle of the window to disable. To disable the keys on all
- --- RECORDSEPARATOR ---
- windows, use 0.
- --- RECORDSEPARATOR ---
- If Disable is true, key presses will be disabled.
- --- RECORDSEPARATOR ---
- If Disable is false, key presses will be enabled again - the WindowHandle argument
- --- RECORDSEPARATOR ---
- is ignored.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- When disabling the keys, returns 1 if the function was successful, otherwise 0.
- --- RECORDSEPARATOR ---
- When enabling the keys, will always return 1.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set KeysOff = baDisableKeys( true , baWinHandle() )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- KeysOff := baDisableKeys( true , baWinHandle() )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- If you disable the keys using this function, make sure that you enable the function
- --- RECORDSEPARATOR ---
- before your application quits.